package com.cskaoyan.order.constant;

public class OrderConstants {





    public static int ORDER_STATUS_INIT = 0; //初始化状态
    public static int ORDER_STATUS_PAYED = 1; //已支付
    public static int ORDER_STATUS_TRANSACTION_SUCCESS = 4; //交易成功
    public static int ORDER_STATUS_TRANSACTION_CLOSE = 5; //交易关闭
    public static int ORDER_STATUS_TRANSACTION_FAILED = 6; //交易失败
    public static int ORDER_STATUS_TRANSACTION_CANCEL = 7; //订单取消
    public static int ORDER_STATUS_TRANSACTION_DELETE = 8; //订单删除


    // 发号器相关的常量
    public static String ORDER_ID = "order_id";  // 订单ID
    public static String ORDER_ITEM_ID = "order_item_id"; // 订单中的商品ID
    public static int INCRBY = 1; // 为了让整体ID呈增大趋势，通常设置为1
    public static int DELETED_ORDER_STATUS = 8; //  删除订单的状态码
    public static int CANCEL_ORDER_STATUS = 7; //  取消订单的状态码


    //
    public static int STOCK_OK = 1; //  库存锁定的状态码
    public static int STOCK_FREE = 2; //  库存释放的状态码
    public static int STOCK_SUCCESS = 3; //  支付成功状态码

}

